<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>测试modal</title>

    <link rel=" stylesheet" href="/css/admin/bootstrap.min.css">
    <script src="/js/admin/jquery.min.js"></script>
    <script src="/js/admin/bootstrap.min.js"></script>
</head>
<body>
<button type="button" id="modalShow">测试</button>
<div class="modal fade" id="testModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">模态框（Modal）标题</h4>
      </div>
      <div class="modal-body">在这里添加一些文本</div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary">提交更改</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal -->
</div>

</body>
</html>
<script>
  $(function (){
    $("#modalShow").click(function (){
      $("#testModal").modal('show');
    })
  })
</script>